//
//  ZHRequestManager.h
//  ZHS_UCDemo
//
//  Created by Emrys on 2016/11/8.
//  Copyright © 2016年 Emrys. All rights reserved.
//

#import "ZHObject.h"

typedef void(^handle)(id object,NSError *error);

typedef NS_ENUM(NSUInteger, ZHHttpMethod) {
    ZH_GET,
    ZH_POST
};

@interface ZHRequestManager : ZHObject

+ (instancetype)sharedManager;

- (void)request:(NSString *)urlString
     httpMethod:(ZHHttpMethod)httpMethod
     parameters:(NSDictionary *)parameters
         handle:(handle)handle;
- (void)loginRequest:(NSString *)urlString
          httpMethod:(ZHHttpMethod)httpMethod
          parameters:(NSDictionary *)parameters
              handle:(handle)handle;

@end
